<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%     
	String path = request.getContextPath();     
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";     
%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看新闻</title>
    <base href="<%=basePath%>"/>
    <link rel="stylesheet" type="text/css" href="css/common.css" />
    <script type="text/javascript" src="ckeditor/ckeditor.js"></script> 
    <style type="text/css">
    	fieldset,legend,form,table,tr,td,textarea{margin:0;padding:0}
    	table{margin:10px 10px};
  		td{line-height: 40px;}
  		label {font-weight:bold;}
	  input[type="text"]{width:250px;}
	  input[type="password"]{width:250px;}
	  input[type="textarea"]{width:250px;}  		
    </style>
  </head>
  
  <body>
    <fieldset>
      <legend>查看新闻：</legend>  
        <table>
          <tr>
            <td><label for="title">标题：</label></td>
            <td>
            	<input type="text" name="title" id="title" disabled="disabled" value="${news.title }" />
            	<font color="red">&nbsp;*&nbsp;&nbsp;</font>
            	<label for="title">0～32位</label>
            </td>
          </tr> 
          <tr>
            <td><label for="createTime">创建时间：</label></td>
            <td>
            	<input type="text"  id="createTime" disabled="disabled" name="createTime" value="${news.createTime}" />
            	<font color="red">&nbsp;*&nbsp;&nbsp;</font>
            	<label for="createTime">0～32位</label>
            </td>
          </tr><tr>
            <td><label for="createUser">创建用户：</label></td>
            <td>
            	<input type="text" disabled="disabled" name="createUser" id="createUser" value="${news.createUser }" />
            	<font color="red">&nbsp;*&nbsp;&nbsp;</font>
            	<label for="createUser">0～32位</label>
            </td>
          </tr>
          <tr>
            <td><label>显示模式：</label></td>
            <td>
                <select id="showType" name="showType" style="width:250px;" disabled="disabled">
                  <option value="1" <c:if test="${news.showType == 1}">selected="selected"</c:if> >普通显示</option>
                  <option value="2" <c:if test="${news.showType == 2}">selected="selected"</c:if>>弹窗显示</option>
                </select> 
            </td>
          </tr>            
          <tr>
            <td valign="top"><label for="content">内容：</label></td>
            <td valign="top"><fieldset>${news.content }</fieldset></td>
          </tr>               
          <tr>
            <td></td>
            <td>
            	<input type="button" id="btn_back" value="返回" onclick="history.back();" style="width:80px;" />
            </td>
          </tr>
        </table>  
    </fieldset>  
  </body>
</html>